package com.jtny.nytb.equipment.vo.rule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 智慧能源中心 - 伍天宇
 * @package com.jtny.nytb.equipment.vo.rule
 * @fileName ValidDictVO.java
 * @createTime 2023年10月09日 14:45
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */
@Data
@ApiModel(value = "ValidDictVO", description = "校验字典VO")
public class ValidDictVO implements Serializable {

    @ApiModelProperty(value = "级别id", required = true)
    @NotNull(message = "级别id不能为空")
    private Long levelId;

    /**
     * 数据字典项描述
     */
    @ApiModelProperty(value = "数据字典项描述", required = true)
    @NotBlank(message = "数据字典项描述不能为空")
    private String description;

    /**
     * 数据字典项值
     */
    @ApiModelProperty(value = "数据字典项值", required = true)
    @NotBlank(message = "数据字典项值不能为空")
    private String value;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号", required = true)
    @NotNull(message = "排序号不能为空")
    @Min(value = 1, message = "排序号不能小于1")
    private Integer sortNumber;

}
